package com.gm.commonlib.network.restful;

import android.annotation.TargetApi;
import android.os.Build;

import com.gm.commonlib.base.baseBean.BaseResp;


public class ResponseException extends RuntimeException {

    private BaseResp baseResp;

    public BaseResp getBaseResp() {
        return baseResp;
    }

    public ResponseException(BaseResp baseResp) {
        this.baseResp = baseResp;
    }

    public ResponseException(String s, BaseResp baseResp) {
        super(s);
        this.baseResp = baseResp;
    }

    public ResponseException(String s, Throwable throwable, BaseResp baseResp) {
        super(s, throwable);
        this.baseResp = baseResp;
    }

    public ResponseException(Throwable throwable, BaseResp baseResp) {
        super(throwable);
        this.baseResp = baseResp;
    }

    @TargetApi(Build.VERSION_CODES.N)
    public ResponseException(String s, Throwable throwable, boolean b, boolean b1, BaseResp baseResp) {
        super(s, throwable, b, b1);
        this.baseResp = baseResp;
    }
}
